import i18n from '../../lang'
export default function modalSure(title) {
  return new Promise((resolve, reject) => {
    this.$confirm(`${i18n.t('confirm')}${title || i18n.t('Permanently delete this data')}`, i18n.t('tiShi'), {
      type: 'warning'
    })
      .then(() => {
        resolve()
      })
      .catch(() => {
        reject()
        this.$message({
          type: 'info',
          message: i18n.$t('yiQuXiao')
        })
      })
  })
}
